<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="xml" omit-xml-declaration="yes"/>
  <xsl:param name="jsx_id">abcdefgh</xsl:param>
  <xsl:template match="/">

	  <script type="text/javascript">
			
		  function showPic(evt,src){

		  		var img = snowsoft.gibay.APP.getJSXByName("imgItemThumb");
		  		img.setLeft(evt.screenX+10);
		  		img.setTop(evt.screenY-220);
				img.setSrc(src);
				snowsoft.gibay.APP.getJSXByName("imgItemThumb").setVisibility(jsx3.gui.Block.VISIBILITYVISIBLE,true);
				img.repaint();
		};
		 
		function hidePic(){
			snowsoft.gibay.APP.getJSXByName("imgItemThumb").setVisibility(jsx3.gui.Block.VISIBILITYHIDDEN,true);
		}

		function goMyItems(){
			snowsoft.gibay.publish({subject:snowsoft.gibay.Event.ON_VIEWMYITEMS,target:this});	
		}

	</script>
	  <ul class="simplelist">
    	    <xsl:for-each select="//record">
     		<li> 
      			<xsl:choose>
        			<xsl:when test="@GalleryURL=''">
        			</xsl:when>
        			<xsl:otherwise>
						<a href="/" onclick="goMyItems();return false;" onmouseover="showPic(event,'{@GalleryURL}');" onmouseout="hidePic();">
							<xsl:value-of select="@Title"/>
						</a>
        			</xsl:otherwise>
      			</xsl:choose>
 		</li> 
  	    </xsl:for-each>
  	  </ul>
  </xsl:template>
</xsl:stylesheet>